import { ApiProperty } from '@nestjs/swagger';

export class DownloadUrlResponseDto {
  @ApiProperty({
    description: 'Pre-signed URL for downloading a file',
    example:
      'https://bucket-name.obs.region.example.com/uploads/1234567890-file.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1623456789&Signature=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
  })
  downloadUrl: string;

  @ApiProperty({
    description: 'Expiration time for the pre-signed URL in seconds',
    example: 3600,
  })
  expiresIn: number;
}
